package com.study.springboot_25_mqkafka.service.impl;

import com.study.springboot_25_mqkafka.service.MessageService;
import com.study.springboot_25_mqkafka.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @desc:
 * @author: panxiyi
 * @date: 2023/5/13 8:43 下午
 */

@Service
public class OrderServiceImpl implements OrderService {

    @Autowired
    private MessageService messageService;

    @Override
    public void order(String id) {

        System.out.println("订单开始处理");
        // 做订单相关操作
        messageService.sendMessage(id);
        System.out.println("订单处理结束");
        System.out.println();

    }

}
